//
//  Des.h
//  desIOS
//
//  Created by wusiping on 16/6/13.
//  Copyright © 2016年 wusiping. All rights reserved.
//

#import <Foundation/Foundation.h>

/******字符串转base64（包括DES加密）******/
#define __DesEncodeString( string )        [Des hexStringFromText:string]

/******base64（通过DES解密）转字符串******/
#define __DesDecodeString( HexString )        [Des textFromHexString:HexString]

@interface Des : NSObject

/**
 *  字符串加密转成16进制字符串
 */
+ (NSString *)hexStringFromText:(NSString *)string;

/**
 *  16进制解密生成字符串
 */
+ (NSString *)textFromHexString:(NSString *)HexString;


+ (NSString *)base64EncodedStringFromData:(NSData *)data;
+ (NSString *)textFrombase64String:(NSString *)base64;

@end
